third-party-exp-api icon

third-party-exp-api

(0 reviews)

CI Confirm Capital Invest Accounts Link Request

Description: This API gets the capitalInvestId, customerId, otpId and otp from channel and account link for capital Invest.

The experience API (third-party-api) will push the requests to third-party-prc api which sends JSON request to MANAF sys api.

If success response is received from MANAF, then T24 must be updated with Capital Invest ID from Mule prc API.

Mulesoft Request:

Headers:

Mandatory Headers: x-correlation-id, client_id, Authorization

Optional Headers: x-sub-channel-id, x-user-id, x-debug-flag, x-customer-id, client_secret, x-channel-id, x-bank-id

Paramaters:

URI Params: NA

Query Params: NA

Body:

{
    "capitalInvestId":  "4000215",
    “customerId”: “12345”,
    “optId” : “id123”,
    “otp”: “6748”
}

Content-type: application/json, text/json

Mulesoft Response:

Success Response: (200)

{
    "status": {
        "success": true,
        "code": "200",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
    }
}

Error Response: (400, 403, 404, 405, 406, 415, 500, 501)

{
    "status": {
        "success": false,
        "code": "400",
        "reasonCode": "BadRequest",
        "arabicMessage": "",
        "englishMessage": "Not Valid OTP",
        "backendError": "Not Valid OTP",
        "backendCode": "11"
    }
}

Error Response: (T24 Response)

{
    "status": {
        "success": false,
        "code": "400",
        "reasonCode": "BadRequest",
        "arabicMessage": "",
        "englishMessage": "Not exist",
        "backendError": "Not exist",
        "backendCode": "6"
    }
}

Reviews